# $Id: PKGBUILD 65092 2012-02-20 03:36:44Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Filip Wojciechowski, filip at loka dot pl

pkgname=cpuburn
pkgver=1.4a
pkgrel=3
pkgdesc="CPU testing utilities in optimized assembler for maximum loading of CPUs"
arch=('i686' 'x86_64')
url="https://launchpad.net/ubuntu/+source/cpuburn/"
license=('GPL')
depends=()
source=(https://launchpad.net/ubuntu/+archive/primary/+files/cpuburn_$pkgver.orig.tar.gz
	cpuburn.patch)
md5sums=('a9e1df40c660324eb08e91847cbc41b9'
         'f3c77db7592ac02ee83958f07ceb8986')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  patch -Np1 -i ../cpuburn.patch
  make
  install -Dm755 burnBX $pkgdir/usr/bin/burnBX
  install -Dm755 burnK6 $pkgdir/usr/bin/burnK6
  install -Dm755 burnK7 $pkgdir/usr/bin/burnK7
  install -Dm755 burnMMX $pkgdir/usr/bin/burnMMX
  install -Dm755 burnP5 $pkgdir/usr/bin/burnP5
  install -Dm755 burnP6 $pkgdir/usr/bin/burnP6
  install -Dm644 README $pkgdir/usr/share/doc/$pkgname/README
  install -Dm644 Design $pkgdir/usr/share/doc/$pkgname/Design
}
